package com.yuyou.tas.service.api.admin.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yuyou.tas.service.api.admin.entity.CommJob;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;





@FeignClient(value = "tas-admin-service")
@RequestMapping(value = "/commJobAPI")
public interface CommJobAPI {
	
	@RequestMapping(value = "/updateLoadedJob")
	ResBoolSimpleInfo<String> updateLoadedJob(@RequestParam("allotTempId")Long allotTempId);
	
	@RequestMapping(value = "/findLoadedJob")
	List<CommJob> findLoadedJob(@RequestParam("allotTempId") Long allotTempId);
	
	@RequestMapping(value = "/addResourceJob")
	ResBoolSimpleInfo<String> addResourceJob(
			@RequestParam("resourceId") String resourceId, 
			@RequestParam("type")Integer type, 
			@RequestParam("tag")String tag);
	
	@RequestMapping(value = "/addJob")
	ResBoolSimpleInfo<String> addJob(
			@RequestParam("fId") Long fId, 
			@RequestParam("type")Integer type, 
			@RequestParam("tag")String tag);
	
	@RequestMapping(value = "/updateJobStatus")
	ResBoolSimpleInfo<String> updateJobStatus(
			@RequestParam("fId") Long fId, 
			@RequestParam("type") Integer type,
			@RequestParam("tag") String tag, 
			@RequestParam("status") Integer status);

	@RequestMapping(value = "/updateJob")
	void updateJob(@RequestParam("id") Long id , @RequestParam("status") Integer status , @RequestParam("remark") String remark);

	@RequestMapping(value = "/insertJobs")
	void insertJobs(@RequestBody List<CommJob> list);
	
	@RequestMapping(value = "/alarmCommJob")
	void alarmCommJob();
	
}
